package cn.stylefeng.guns.modular.cart.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.stylefeng.guns.modular.cart.entity.ShoppingCartEntity;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * @author allen
 * @date 2021/4/12 10:20
 * @version 1.0
 */
@Mapper
public interface ShoppingCartMapper extends BaseMapper<ShoppingCartEntity> {
    int updateBatch(List<ShoppingCartEntity> list);

    int updateBatchSelective(List<ShoppingCartEntity> list);

    int batchInsert(@Param("list") List<ShoppingCartEntity> list);

    int insertOrUpdate(ShoppingCartEntity record);

    int insertOrUpdateSelective(ShoppingCartEntity record);
}